package com.zz.admin.auth.enums;

import com.zz.common.base.enums.IBaseExceptionEnum;

public enum BaseAuthExceptionEnum implements IBaseExceptionEnum {
    BASE_ERROR("10000", "{0}"),
    USERNAME_NOT_FOUND("10001", "用户名不存在"),
    INVALIDITY_USER("10002", "该用户账号已失效，请联系管理员"),
    AUTHENTICATION_IS_NULL("10003", "用户名或密码错误"),
    ILLEGAL_TOKEN("10004", "{0}"),
    USER_NOT_LOGGED_IN("10005", "用户未登录"),
    REFRESH_TOKEN_IS_NULL("10006", "refreshToken为空");
    private String code;
    private String message;

    BaseAuthExceptionEnum() {
    }

    BaseAuthExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

}
